<%@taglib uri="/WEB-INF/struts-html.tld"  prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table cellpadding="1" cellspacing="1" width="100%">
    <tr class="netral">
        <td colspan="3"><bean:message key="siswa.siswa"/></td>
    </tr>
    <tr class="form">
        <td colspan="3" align="right"><html:link href="siswa.do?action=siswaAdd" styleClass="noLink"><input type="button" value="${buttonNew}"/></html:link></td>
    </tr>
    <tr class="form">
        <td colspan="3">&nbsp;</td>
    </tr>
    <tr class="netral">
        <td colspan="3"><bean:message key="label.tabel"/> <bean:message key="siswa.siswa"/></td>
    </tr>
    <tr class="header">
        <td><bean:message key="label.no"/></td>
        <td><bean:message key="label.description"/></td>
        <td><bean:message key="label.action"/></td>
    </tr>
    <c:forEach var="listSiswa" items="${listSiswa}" varStatus="row">
        <c:if test="${(row.count) % 2 == 0}"><tr class="over"></c:if>
        <c:if test="${(row.count) % 2 != 0}"><tr class="down"></c:if>
            <td width="5%" valign="top"><c:out value="${row.count}"/></td>
            <td width="73%" align="left">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td><bean:message key="siswa.kode"/></td>
                        <td>:</td>
                        <td><c:out value="${listSiswa.kode}"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="siswa.nama"/></td>
                        <td>:</td>
                        <td><c:out value="${listSiswa.nama}"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="siswa.alamat"/></td>
                        <td>:</td>
                        <td><c:out value="${listSiswa.alamat}"/></td>
                    </tr>
                    <tr>
                        <td><bean:message key="siswa.telp"/></td>
                        <td>:</td>
                        <td><c:out value="${listSiswa.telp}"/></td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <html:link action="siswa.do?action=siswaDetail" paramName="listSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.detail"/> ]</html:link>
                <html:link action="siswa.do?action=siswaEdit" paramName="listSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.edit"/> ]</html:link>
                <html:link action="siswa.do?action=siswaDelete" paramName="listSiswa" paramProperty="id" paramId="id" styleClass="noLink">[ <bean:message key="label.delete"/> ]</html:link>
            </td>
        </tr>
    </c:forEach>
    <tr class="form">
        <td colspan="3">&nbsp;</td>
    </tr>
    <logic:empty name="listSiswa">
        <tr class="form">
            <td colspan="3" align="center"><bean:message key="siswa.siswa"/> <bean:message key="label.isEmpty"/></td>
        </tr>
    </logic:empty>
</table>